Class symantec.itools.awt.image.DarkenFilter
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.awt.image.DarkenFilter
Object
|
+----ImageFilter
|
+----RGBImageFilter
|
+----symantec.itools.awt.image.DarkenFilter
- public class DarkenFilter
- extends RGBImageFilter
An Image filter to use for darkening an Image a specified percentage.
- Version:
- 1.1, July 8, 1997
- Author:
- Symantec
-
errors
- Error strings.
-
percent
- The percentage to fade when filtering.
-
symantec.itools.awt.image.DarkenFilter()
- Constructs a default DarkenFilter.
-
symantec.itools.awt.image.DarkenFilter(double)
- Constructs a DarkenFilter.
-
filterRGB(int, int, int)
- Filters an RGB value by the current fade percentage.
-
getPercent()
- Gets the percentage to fade when filtering.
-
setPercent(double)
- Sets the percentage to fade when filtering.
errors
protected transient java.util.ResourceBundle errors
- Error strings.
percent
protected double percent
- The percentage to fade when filtering.
- See Also:
- getPercent, setPercent
DarkenFilter
public DarkenFilter()
- Constructs a default DarkenFilter.
By default the Image is darkened 50%.
- See Also:
- DarkenFilter(double), setPercent
DarkenFilter
public DarkenFilter(double percent)
- Constructs a DarkenFilter.
- Parameters:
- percent - the percent to darken the image when filtering.
- See Also:
- DarkenFilter(), setPercent
filterRGB
public int filterRGB(int x,
int y,
int rgb)
- Filters an RGB value by the current fade percentage.
- Parameters:
- x - unused
- y - unused
- rgb - the rgb value to fade
- Returns:
- the faded rgb value
- Overrides:
- filterRGB in class RGBImageFilter
getPercent
public double getPercent()
- Gets the percentage to fade when filtering.
- Returns:
- the percentage to fade.
- See Also:
- setPercent
setPercent
public void setPercent(double percent) throws IllegalArgumentException
- Sets the percentage to fade when filtering.
- Parameters:
- percent - the percentage to fade.
- Throws: IllegalArgumentException
- if the specified percentage value is unacceptable
- See Also:
- getPercent
All Packages Class Hierarchy This Package Previous Next Index